<template>
  <div>
    <input type="text" :value="modelValue" @input="fn">
  </div>
</template>

<script>
export default {
  props: ['modelValue'],
  // emits: ['update:modelValue'],
  setup(ppp, { emit }) {

    const fn = (e) => {
      emit('update:modelValue', e.target.value)
    }
    return {
      fn
    }
  }
}
</script>

<style lang="scss" scoped>
</style>